REPORT zixmlreader.

INCLUDE: zxmllib.                      "iXML Library

DATA: gr_reading_list TYPE REF TO lcl_reading_list,
      lt_authors      TYPE string_table.

START-OF-SELECTION.
*  Read an existing reading list document into context:
   gr_reading_list =
      lcl_reading_list=>create_from_file( ).

*  Add another book to the list:
   APPEND 'Horst Keller' TO lt_authors.

   CALL METHOD gr_reading_list->add_book
      EXPORTING
         im_isbn      = '978-1-59229-039-0'
         im_title     = 'The Official ABAP Reference'
         im_authors   = lt_authors
         im_publisher = 'SAP PRESS'.

*  Display the updated document in a browser:
   gr_reading_list->display( ).